package com.lz.service;

import com.lz.common.LzException;
import org.springframework.stereotype.Service;

/**
 * <pre>
 * @描述：
 * @作者：lizhao
 * @创建时间： 2024/8/21 上午8:55
 * </pre>
 **/
@Service
public class UserServiceImpl {

    public boolean save() {
        System.out.println("save user");
        return false;
    }

    public void delete() {
        System.out.println("delete user");
    }

    public void update() {
        if (!save()) {
            throw new LzException("save user failed");
        }
        System.out.println("update user");
    }

    public void find() {
        System.out.println("find user");
    }

}
